const userController = require('../../controller/system/user');

exports.search = (req, res) => {
    userController.searchUser(e => {
        res.status(200).json(e);
    })
}

exports.add = (req, res) => {
    userController.addUser(req.body, e => {
        res.status(200).json(e)
    })
}

exports.delete = (req, res) => {
    userController.deleteUser(req.body, e => {
        res.status(200).json(e);
    })
}

exports.edit = (req, res) => {
    userController.editUser(req.body, e => {
        res.status(200).json(e);
    })
}